Skip to content

Conversation

@ngoldbaum
Copy link

Adds CI for the latest versions of Python. I'm not sure if you'd like to do anything special for the free-threaded build. I've been working on ecosystem support for the free-threaded build and am happy to answer questions if you have any.

@ngoldbaum
Copy link
Author

It looks like the GIL is getting dynamically re-enabled:

<frozen importlib._bootstrap>:491
  <frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'lxml.etree', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.

See https://bugs.launchpad.net/lxml/+bug/2111289 for more about lxml and the free-threaded build.

@ngoldbaum
Copy link
Author

I'm pretty sure all the rpm-build failures are unrelated:

=================================== FAILURES ===================================
_______________________________ test_loaded_unit _______________________________

    def test_loaded_unit():
        unit = Unit("foo.service")
>       unit.load()

tests/test_pickle.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib64/python3.14/site-packages/pystemd/base.py:101: in load
    unit_xml = self.get_introspect_xml()
../BUILDROOT/usr/lib64/python3.14/site-packages/pystemd/base.py:84: in get_introspect_xml
    with self.bus_context() as bus:
/usr/lib64/python3.14/contextlib.py:141: in __enter__
    return next(self.gen)
../BUILDROOT/usr/lib64/python3.14/site-packages/pystemd/base.py:75: in bus_context
    bus.open()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   raise DBusError(rets, None, "Could not open a bus to DBus")
E   pystemd.dbusexc.DBusFileNotFoundError: [err -2]: Could not open a bus to DBus

pystemd/dbuslib.pyx:305: DBusFileNotFoundError
=========================== short test summary info ============================
FAILED tests/test_pickle.py::test_loaded_unit - pystemd.dbusexc.DBusFileNotFo...
========================= 1 failed, 37 passed in 0.34s =========================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant